package thread;

public class ThreadJoin implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("线程Vip来了"+i);
        }
    }

    public static void main(String[] args) throws InterruptedException {
        ThreadJoin join = new ThreadJoin();
        Thread thread = new Thread(join);
        thread.start();

        for (int i = 0; i < 1000; i++) {
            if (i == 200){
                thread.join();
            }
            System.out.println("Main"+i);
        }
    }
}
